package com.fearless.demo04;


import com.fearless.demo04.impl.BoyServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration//指定为配置类
@EnableAspectJAutoProxy//开启切面代理功能
public class MyConfig {

    @Bean
    public Aspect01 aspect01(){

       return new Aspect01();
    }

    @Bean
    public BoyService boyService(){
        return new BoyServiceImpl();
    }





}
